package com.iterator.controller.wechat.lc;

import com.iterator.bean.web.pojo.BaseRespVo;
import com.iterator.bean.wechat.lc.WxCommentListBO;
import com.iterator.service.wechat.lc.WxCommentServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("wx/comment")
public class WxCommentController {
    @Autowired
    WxCommentServiceImpl wxCommentService;
    @RequestMapping("count")
    public BaseRespVo count(@RequestParam Integer valueId,@RequestParam Integer type){
        Map<String, Object> map = wxCommentService.count(valueId, type);
        return BaseRespVo.ok(map);
    }

    @RequestMapping("list")
    public BaseRespVo list(WxCommentListBO commentListBO){
        Map<String, Object> map = wxCommentService.list(commentListBO);
        return BaseRespVo.ok(map);
    }
}
